import 'dart:ui';

import 'package:flutter/material.dart';

enum BBLogType {
  debug(level: 0, color: Colors.green),
  info(level: 1, color: Colors.blue),
  warning(level: 2, color: Colors.orange),
  error(level: 3, color: Colors.red),
  none(level: 4);

  const BBLogType({required this.level, this.color = Colors.black});

  final int level;
  final Color color;
}

enum BBLogFrom {
  people,
  rootLibray,
  fastLog,
  mobx,
  ui,
  main,
  init,
  utils,
  dartSip;
}

class BBLogBean {
  BBLogBean({
    required this.tag,
    required this.msg,
    required this.type,
    required this.from,
    required this.time,
  });

  final String? tag;
  final DateTime time;
  final Object? msg;
  final BBLogType type;
  final BBLogFrom from;
}
